package com.gu.enumeration;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.enumeration
 * @ClassName: RepairTypeEnum
 * @Author: gusongliao
 * @Description: 维修类型枚举
 * @createDate 2021/04/13 21:34
 */
public enum RepairTypeEnum {
    TYPE1(1,"通下水"),
    TYPE2(2,"开锁"),
    TYPE3(3,"通马桶"),
    TYPE4(4,"通地漏"),
    TYPE5(5,"开锁"),
    TYPE6(6,"换锁芯"),
    TYPE7(7,"修换水龙头"),
    TYPE8(8,"维修水管"),
    TYPE9(9,"空调移机"),
    TYPE10(10,"维修加氟"),
    TYPE11(11,"暖气安装"),
    TYPE12(12,"暖气维修"),
    TYPE13(13,"修换燃气灶"),
    TYPE14(14,"清洗油烟机"),
    TYPE15(15,"清洗暖气"),
    TYPE16(16,"清洗地暖"),
    TYPE17(17,"专业治反味"),
    TYPE18(18,"做防水"),
    TYPE19(19,"贴瓷砖"),
    TYPE20(20,"刮大白"),
    TYPE21(21,"维修热水器"),
    TYPE22(22,"维修家电"),
    TYPE23(23,"改水电"),
    TYPE24(24,"修水修电"),
    TYPE25(25,"专业保洁"),
    TYPE26(26,"家政服务"),
    TYPE27(27,"定做金刚纱网窗"),
    TYPE28(28,"护栏纱窗"),
    TYPE29(29,"隐形纱窗"),
    TYPE30(30,"安装护栏"),
    TYPE31(31,"灯具"),
    TYPE32(32,"卫浴"),
    TYPE33(33,"安装定做窗帘杆"),
    TYPE34(34,"室内整体装修"),
    TYPE35(35,"其他"),
    ;

    private Integer type;
    private String msg;

    RepairTypeEnum(Integer type, String msg) {
        this.type = type;
        this.msg = msg;
    }

    public Integer getStatus() {
        return type;
    }

    public void setStatus(Integer type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String getRepairType(Integer type){
        for (RepairTypeEnum value : RepairTypeEnum.values()) {
            if (value.type .equals(type)){
                return value.msg;
            }
        }
        return "";
    }

}
